//
//  SZChannelLabel.m
//  03-仿网易新闻
//
//  Created by ItHeiMa on 2017/1/3.
//  Copyright © 2017年 itHeima. All rights reserved.
//

#import "SZChannelLabel.h"

@implementation SZChannelLabel

+ (SZChannelLabel *) labelWithText: (NSString *)text {
    SZChannelLabel *label = [SZChannelLabel cz_labelWithText:text fontSize:18 color:[UIColor blackColor]];
    label.userInteractionEnabled = YES;
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:14];
    return label;
}

//设置选中状态
- (void) setIsSelected:(BOOL)isSelected {
    _isSelected = isSelected;
    if (_isSelected) {
        self.textColor = [UIColor redColor];
        self.font = [UIFont systemFontOfSize:18];
    } else {
        self.textColor = [UIColor blackColor];
        self.font = [UIFont systemFontOfSize:14];
    }
}


@end
